/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;


import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;

@ManagedBean
public class CaptchaBean {

	public void submit(ActionEvent event) {
		FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Correct", "Correct");
		
		FacesContext.getCurrentInstance().addMessage(null, msg);
	}
}
/*
 * <!--p:messages showDetail="true"/>

                    <p:captcha label="Captcha"/>

                    <p:commandButton value="valider" ajax="false"
                                     actionListener="#{captchaBean.submit}" /-->
                         <!--b>Nombre de jours:</b> <p:spinner value="#{monBean.number}"/><br/>
                         <b>Nombre de jours:</b> <p:calendar pattern="HH:mm" timeOnly="true" value="#{monBean.date}"/><br/>
                         <b>Date de début:</b> <p:calendar pattern="MM/dd/yyyy HH:mm" value="#{monBean.date}"/><br/>
                         <p:commandButton action="#{monBean.doPost}" value="Submit" ajax="false" /-->
 */
